package com.song.JavaThread_day02.ch2_4;

public class TaskMain {
	
	
	public static void main(String[] args) {
		
		EventStorage storage = new EventStorage();
		
		Producer producer = new Producer(storage);
		Consumer consumer = new Consumer(storage);
		Thread t1 =  new Thread(producer);
		Thread t2 = new Thread(consumer);
		t1.start();
		t2.start();
		
		
	}
	
}
